.framer {
	[data-command-root] {
		max-width: 640px;
		width: 100%;
		padding: 8px;
		background: #ffffff;
		border-radius: 16px;
		overflow: hidden;
		font-family: var(--font-sans);
		border: 1px solid var(--gray6);
		box-shadow: var(--command-shadow);

		.dark & {
			background: var(--gray2);
		}
	}

	[data-command-framer-header] {
		display: flex;
		align-items: center;
		gap: 8px;
		height: 48px;
		padding: 0 8px;
		border-bottom: 1px solid var(--gray5);
		margin-bottom: 12px;
		padding-bottom: 8px;

		& svg {
			width: 20px;
			height: 20px;
			color: var(--gray9);
			transform: translateY(1px);
		}
	}

	[data-command-input] {
		font-family: var(--font-sans);
		border: none;
		width: 100%;
		font-size: 16px;
		outline: none;
		background: var(--bg);
		color: var(--gray12);

		&::placeholder {
			color: var(--gray9);
		}
	}

	[data-command-item] {
		content-visibility: auto;

		cursor: pointer;
		border-radius: 12px;
		font-size: 14px;
		display: flex;
		align-items: center;
		gap: 12px;
		color: var(--gray12);
		padding: 8px 8px;
		margin-right: 8px;
		font-weight: 500;
		transition: all 150ms ease;
		transition-property: none;

		&[data-selected] {
			background: var(--blue9);
			color: #ffffff;

			[data-command-framer-item-subtitle] {
				color: #ffffff;
			}
		}

		&[data-disabled] {
			color: var(--gray8);
			cursor: not-allowed;
		}

		& + [data-command-item] {
			margin-top: 4px;
		}

		& svg {
			width: 16px;
			height: 16px;
			color: #ffffff;
		}
	}

	[data-command-framer-icon-wrapper] {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 32px;
		height: 32px;
		background: orange;
		border-radius: 8px;
	}

	[data-command-framer-item-meta] {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	[data-command-framer-item-subtitle] {
		font-size: 12px;
		font-weight: 400;
		color: var(--gray11);
	}

	[data-command-framer-items] {
		min-height: 308px;
		display: flex;
	}

	[data-command-framer-left] {
		width: 40%;
	}

	[data-command-framer-separator] {
		width: 1px;
		border: 0;
		margin-right: 8px;
		background: var(--gray6);
	}

	[data-command-framer-right] {
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 8px;
		margin-left: 8px;
		width: 60%;

		& button {
			width: 120px;
			height: 40px;
			background: var(--blue9);
			border-radius: 6px;
			font-weight: 500;
			color: white;
			font-size: 14px;
		}

		& input[type="text"] {
			height: 40px;
			width: 160px;
			border: 1px solid var(--gray6);
			background: #ffffff;
			border-radius: 6px;
			padding: 0 8px;
			font-size: 14px;
			font-family: var(--font-sans);
			box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.08);

			&::placeholder {
				color: var(--gray9);
			}
		}

		[data-command-framer-radio] {
			display: flex;
			align-items: center;
			gap: 4px;
			color: var(--gray12);
			font-weight: 500;
			font-size: 14px;
			accent-color: var(--blue9);

			& input {
				width: 20px;
				height: 20px;
			}
		}

		& img {
			width: 40px;
			height: 40px;
			border-radius: 9999px;
			border: 1px solid var(--gray6);
		}

		[data-command-framer-container] {
			width: 100px;
			height: 100px;
			background: var(--blue9);
			border-radius: 16px;
		}

		[data-command-framer-badge] {
			background: var(--blue3);
			padding: 0 8px;
			height: 28px;
			font-size: 14px;
			line-height: 28px;
			color: var(--blue11);
			border-radius: 9999px;
			font-weight: 500;
		}

		[data-command-framer-slider] {
			height: 20px;
			width: 200px;
			background: linear-gradient(90deg, var(--blue9) 40%, var(--gray3) 0%);
			border-radius: 9999px;

			& div {
				width: 20px;
				height: 20px;
				background: #ffffff;
				border-radius: 9999px;
				box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.32);
				transform: translateX(70px);
			}
		}
	}

	[data-command-list] {
		overflow: auto;
	}

	[data-command-separator] {
		height: 1px;
		width: 100%;
		background: var(--gray5);
		margin: 4px 0;
	}

	[data-command-group-heading] {
		user-select: none;
		font-size: 12px;
		color: var(--gray11);
		padding: 0 8px;
		display: flex;
		align-items: center;
		margin-bottom: 8px;
	}

	[data-command-empty] {
		font-size: 14px;
		padding: 32px;
		white-space: pre-wrap;
		color: var(--gray11);
	}
}

@media (max-width: 640px) {
	.framer {
		[data-command-framer-icon-wrapper] {
		}

		[data-command-framer-item-subtitle] {
			display: none;
		}
	}
}

@media (prefers-color-scheme: dark) {
	.framer {
		[data-command-framer-right] {
			& input[type="text"] {
				background: var(--gray3);
			}
		}
	}
}
